﻿using IPC.Server;

namespace Server
{
    class Server
    {
        static void Main(string[] args)
        {
            var thread = new NamedPipeThread("test");
            thread.OnReceive += (str, server) =>
            {
                var arr = str.Split(',');
                server.Send("=" + (int.Parse(arr[0]) + int.Parse(arr[1])));
            };
            thread.Run();

            while (true)
            {

            }
        }
    }
}